<?php include "header.phtml"; ?>
  <h1><?php echo $this->escape($this->title);?></h1>
  <h2><?php echo $this->escape($this->description);?></h2>
  <a href="register">Register</a>
  <?php 
  $datas = $this->datas;
  //print_r($datas);?>
  <table border="1">
    <tr>
	  <th>ID</th>
	  <th>User Name</th>	  
	  <th>First Name</th>	  
	  <th>Last Name</th>	  
	  <th>Action</th>	  
	</tr>
  <?php
  foreach($datas as $value){
 ?>
    <tr>
	  <td><?php echo $value['id']?></td>	
	  <td><?php echo $value['user_name']?></td>
	  <td><?php echo $value['first_name']?></td>	  
	  <td><?php echo $value['last_name']?></td>	  
	  <td>
	    <a href="edit/id/<?php echo $value['id']?>">Edit</a>
		|
	    <a href="del/id/<?php echo $value['id']?>">Delete</a>		
	  </td>	  
	</tr> 
  <?php } ?>
  </table>
  
<?php include "footer.phtml"; ?>
